home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / NextAnswers / 1311_NXMapFile_invalid_stream.rtf < prev    next >
Text File  |  1995-06-12  |  906b  |  25 lines

  1. {\rtf0\ansi{\fonttbl\f0\fnil Times-Roman;\f2\fmodern Ohlfs;}
  2. \paperw11460
  3. \paperh7040
  4. \margl120
  5. \margr120
  6. {\colortbl;\red0\green0\blue0;\red84\green84\blue84;\red83\green83\blue83;\red82\green82\blue82;}
  7. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\b0\i0\ulnone\fs28\fc0\cf0 Q:  Help! 
  8. \b NXMapFile()
  9. \b0  is returning a NULL stream.  \
  10. \
  11. A:  
  12. \fc1\cf1 The documentation is not explicit on this point, but the file must already exist for 
  13. \b NXMapFile()
  14. \b0  to return a valid stream.   As the name of the function indicates, it maps the file into a memory stream.  If the file doesn't exist, you can't very well map it.  If you want to open a memory stream to write to and later save to that path, you can use 
  15. \b NXOpenMemory()
  16. \b0  to get a memory stream and then use 
  17. \b NXSaveToFile()
  18. \b0  to write the stream out to that path.\
  19. \
  20. QA760\
  21. \
  22. Valid for 1.0, 2.0, 3.0\
  23. \
  24.  
  25.